package com.kgc.est.feignService;

import com.kgc.est.dto.ModelDto;
import com.kgc.est.request.ModelReq;
import com.kgc.est.utils.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = "est-provider")
public interface ModelService {

    @PostMapping("/model/searchModel")
    Result searchModel(@RequestBody ModelReq modelReq);

    @GetMapping("/model/{id}/detail")
    Result<ModelDto> detail(@PathVariable("id")Long id);
}
